package com.zytlifeservice.repository;

import com.zytlifeservice.domain.Verify;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MJS on 2017/4/28.
 */
public interface VerifyRepository extends JpaRepository<Verify, Long> {
    public List<Verify> findByMobile(String mobile);

    public List<Verify> findByMobileOrderBySendTimeDesc(String mobile);

    public Long removeAllByMobile(String mobile);
}
